<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>部门列表页面</title>
</head>

<!-- 引入ElementUI样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!-- 引入ElementUI组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>


<body>

<div align="center">
    <h2>部门信息列表</h2>
    <table border="1" width="500px" height="300px">
        <tr>
            <th>部门ID</th>
            <th>部门名称</th>
            <th>部门位置</th>
        </tr>
        <tr th:each="dept : ${depts}">
            <td th:text="${dept.deptId}"></td>
            <td th:text="${dept.deptName}"></td>
            <td th:text="${dept.deptLoc}"></td>
        </tr>
    </table>
    <a th:href="@{/addDept}">添加部门信息</a>
</div>


</body>
</html>